package com.etone.smartAudit.dto.item;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @author: 蒋学伟
 * @create: 2020-07-17 11:27:55
 * @Description ItemExpansionDTO
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "扩容｜资源申请表单")
public class ItemExpansionDTO implements Serializable {

    @ApiModelProperty("联系人")
    @NotEmpty
    private String contact;

    @ApiModelProperty("联系方式")
    @NotEmpty
    private String contactTel;

    @ApiModelProperty("扩容原因")
    private String cause;

    @ApiModelProperty("备注")
    private String remark;

    @JsonIgnore
    @ApiModelProperty("是否是资源申请")
    private Boolean isFirst;

    @ApiModelProperty("扩容资源")
    private List<ItemExpansionSourceDTO> itemExpansionSources;
}
